class MessageModel {
  String id;
  String name;
  String avatar;
  String content;
  String time;
  String num;

  static MessageModel formMap(Map<String, dynamic> map) {
    MessageModel message = MessageModel();
    message.id = map['id'].toString();
    message.name = map['name'];
    message.avatar = map['avatar'];
    message.content = "";
    message.time = "";
    message.num = "0";
    return message;
  }

  void setContent(String content) {
    this.content = content;
  }

  void setTime(String time) {
    this.time = time;
  }

  void setNum(String num) {
    this.num = num;
  }
}
